package ve.usb.ddp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import java.util.List;
import ve.usb.cohesion.runtime.Pair;


public class FPaiEstudio extends org.apache.struts.action.ActionForm {
    
    
    public FPaiEstudio() {
        super();
        idEstudio = 0l;
        resolucion = 0l;
        listPaiResolucion = null;
        pais = "";
        universidad = "";
        nivel = "";
        modalidad = "";
        fec_Ini = null;
        fec_Fin = null;

    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        idEstudio = 0l;
        resolucion = 0l;
        listPaiResolucion = null;
        pais = "";
        universidad = "";
        nivel = "";
        modalidad = "";
        fec_Ini = null;
        fec_Fin = null;

    }

    public static FPaiEstudio clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        FPaiEstudio fFPaiEstudio = (FPaiEstudio) sess.getAttribute("FPaiEstudio");
        if (fFPaiEstudio == null) {
            fFPaiEstudio = new FPaiEstudio();
            sess.setAttribute("FPaiEstudio", fFPaiEstudio);
        } else {
            fFPaiEstudio.reset(mapping, request);
        }
        return fFPaiEstudio;
    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

/**
     * Holds value of property idEstudio.
     */
    private Long idEstudio;

    /**
     * Getter for property idEstudio.
     * @return Value of property idEstudio.
     */
    public Long getIdEstudio() {
        return this.idEstudio;
    }

    /**
     * Setter for property idEstudio.
     * @param idEstudio New value of property idEstudio.
     */
    public void setIdEstudio(Long idEstudio) {
        this.idEstudio = idEstudio;
    }

/**
     * Holds value of property resolucion.
     */
    private Long resolucion;

    /**
     * Getter for property resolucion.
     * @return Value of property resolucion.
     */
    public Long getResolucion() {
        return this.resolucion;
    }

    /**
     * Setter for property resolucion.
     * @param resolucion New value of property resolucion.
     */
    public void setResolucion(Long resolucion) {
        this.resolucion = resolucion;
    }

/**
     * Holds value of property listPaiResolucion.
     */
    private List<Pair> listPaiResolucion;

    /**
     * Getter for property listPaiResolucion.
     * @return Value of property listPaiResolucion.
     */
    public List<Pair> getListPaiResolucion() {
        return this.listPaiResolucion;
    }

    /**
     * Setter for property listPaiResolucion.
     * @param listPaiResolucion New value of property listPaiResolucion.
     */
    public void setListPaiResolucion(List<Pair> listPaiResolucion) {
        this.listPaiResolucion = listPaiResolucion;
    }

/**
     * Holds value of property pais.
     */
    private String pais;

    /**
     * Getter for property pais.
     * @return Value of property pais.
     */
    public String getPais() {
        return this.pais;
    }

    /**
     * Setter for property pais.
     * @param pais New value of property pais.
     */
    public void setPais(String pais) {
        this.pais = pais;
    }

/**
     * Holds value of property universidad.
     */
    private String universidad;

    /**
     * Getter for property universidad.
     * @return Value of property universidad.
     */
    public String getUniversidad() {
        return this.universidad;
    }

    /**
     * Setter for property universidad.
     * @param universidad New value of property universidad.
     */
    public void setUniversidad(String universidad) {
        this.universidad = universidad;
    }

/**
     * Holds value of property nivel.
     */
    private String nivel;

    /**
     * Getter for property nivel.
     * @return Value of property nivel.
     */
    public String getNivel() {
        return this.nivel;
    }

    /**
     * Setter for property nivel.
     * @param nivel New value of property nivel.
     */
    public void setNivel(String nivel) {
        this.nivel = nivel;
    }

/**
     * Holds value of property modalidad.
     */
    private String modalidad;

    /**
     * Getter for property modalidad.
     * @return Value of property modalidad.
     */
    public String getModalidad() {
        return this.modalidad;
    }

    /**
     * Setter for property modalidad.
     * @param modalidad New value of property modalidad.
     */
    public void setModalidad(String modalidad) {
        this.modalidad = modalidad;
    }

/**
     * Holds value of property fec_Ini.
     */
    private String fec_Ini;

    /**
     * Getter for property fec_Ini.
     * @return Value of property fec_Ini.
     */
    public String getFec_Ini() {
        return this.fec_Ini;
    }

    /**
     * Setter for property fec_Ini.
     * @param fec_Ini New value of property fec_Ini.
     */
    public void setFec_Ini(String fec_Ini) {
        this.fec_Ini = fec_Ini;
    }

/**
     * Holds value of property fec_Fin.
     */
    private String fec_Fin;

    /**
     * Getter for property fec_Fin.
     * @return Value of property fec_Fin.
     */
    public String getFec_Fin() {
        return this.fec_Fin;
    }

    /**
     * Setter for property fec_Fin.
     * @param fec_Fin New value of property fec_Fin.
     */
    public void setFec_Fin(String fec_Fin) {
        this.fec_Fin = fec_Fin;
    }




}